<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<div class="page-main" th:fragment="copy">
    <ul class="page-pagination" id="ulPage">
    </ul>
    <input type="hidden" id="recordNum" th:value="${j_page.recordNum}" />
    <input type="hidden" id="maxSize" th:value="${j_page.maxSize}" />
    <input type="hidden" id="currentPage" th:value="${j_page.currentPage}" />
    <input type="hidden" id="pageNum" th:value="${j_page.pageNum}" />
    <script th:inline="javascript">
        $("#ulPage").createPage({
            pageCount:parseInt(/*[[${j_page.pageNum}]]*/ 0),
            current:parseInt(/*[[${j_page.currentPage}]]*/ 0),
            backFn:function(p){
                var url = $("#pageForm").attr("action")+"?currentPage="+p;
                $("#pageForm").attr("action",url);
                $("#pageForm").submit();
            }
        });
    </script>
</div>
</body>
</html>
